<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>华猫商城</title>
		<style></style>
		<link href="../css/jquery.validator.css" rel="stylesheet">
		<link href="../css/common.css" rel="stylesheet">

		<link href="../plugin/userLib/css/user.css" rel="stylesheet">
		<link href="../plugin/userLib/css/userinfo.css" rel="stylesheet">
		<link href="../plugin/userLib/css/my_user.css" rel="stylesheet">
		<link href="../css/base.css" rel="stylesheet">
		<style>

		</style>
	</head>

	<body>
		<div id="header"></div>
		<div id="headerBox"></div>
		<!--<div id="nav_menu"></div>-->
		<div class="ZZHT-wrap">
			<div class="ZZHT-header" style="border-bottom: 1px solid #ffffff;">
				<div class="ZZHT-shop-nav">
					<div class="ZZHT-nav-box">
						<a href="#">
							<li class="liselect ZZHT-lfloat ZZHT-nav-boxa">用户中心</li>
						</a>
						<div class="ZZHT-clear"></div>
					</div>
				</div>
				<div class="ZZHT-clear"></div>
			</div>
			<div class="ZZHT-main">
				<div id="user_left"></div>
				<div id="msgList"></div>
			</div>
			<div style="clear:both;"></div>
			<br>
		</div>
		<div id="ck3"></div>
		<script src="../js/jquery.min.js"></script>
		<script src="../js/vue.min.js"></script>
		<script src="../plugin/layer/layer.js"></script>
		<script type="text/javascript" src="../js/ljf_base.js"></script>
		<script type="text/javascript" src="../js/common.js"></script>
		<script type="text/javascript" src="../js/common_view.js"></script>
		<script type="text/javascript" src="../plugin/userLib/js/message.js"></script>
		<script type="text/javascript">
			var vm = new Vue({
				el:'#msg_box',
				data:{
					tab : [],
				},
				methods:{
					delMsg:function(id){
						var that = this;
						layer.confirm('确认删除？',function(index){
							console.log(id);
							
							layer.close(index);
						})
					},
					showMsg:function(id){
						console.log(id);
						location.href = 'msgDetail.html?msgId='+id;
					}
				}
			});
			$.ajax({//获取用户信息 头像等
				type: "get",
				url: SURL + "messages/getMessage",
				data: {
					"receiveUserId":localStorage.userId,
				},
				dataType: 'json',
				success: function(res) {
					console.log(res);
					if(res.messageCode==200){
						if(res.entity.length>0){
							vm.tab = res.entity;
						}
					}else{
						layer.msg(res.message);
					}
				}
			});
		</script>
	</body>

</html>